/* 全局样式文件 */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary-color: #f59e0b;
  --secondary-color: #111827;
  --text-color: #374151;
  --light-bg: #f9fafb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* 响应式调整 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 动画效果 */
.transition-all {
  transition: all 0.3s ease;
}

/* 按钮样式增强 */
.btn {
  @apply font-bold py-3 px-6 rounded-md transition-colors;
}

.btn-primary {
  @apply bg-yellow-500 hover:bg-yellow-600 text-black;
}

.btn-secondary {
  @apply border-2 border-white hover:bg-white hover:text-black text-white;
}

/* 卡片样式 */
.card {
  @apply bg-white rounded-lg shadow-md hover:shadow-xl transition-shadow;
}

/* 表单元素样式 */
input, select, textarea {
  @apply w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-yellow-500;
}

/* 图片样式 */
.img-rounded {
  @apply rounded-lg shadow-xl w-full;
}

/* 辅助类 */
.section {
  @apply py-16;
}

.section-hero {
  @apply py-20 bg-black text-white;
}

.section-alt {
  @apply bg-gray-100;
}

/* 页面过渡动画 */
.page-enter {
  opacity: 0;
}

.page-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}

.page-exit {
  opacity: 1;
}

.page-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}
